package com.gun.management.module.raffle.controller.admin.lotteryrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户抽奖履历新增/修改 Request VO")
@Data
public class LotteryRecordSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "21450")
    private Long id;

    @Schema(description = "用户id", example = "29471")
    private Long userId;

    @Schema(description = "抽奖id", example = "3674")
    private Long lotteryId;

    @Schema(description = "奖品id", example = "17863")
    private Long ruleId;

    @Schema(description = "总抽奖次数")
    private Integer totalTimes;

    @Schema(description = "总剩余次数")
    private Integer leftTimes;

    @Schema(description = "每人每天总抽奖次数")
    private Integer dayTotalTimes;

    @Schema(description = "当天已剩余次数")
    private Integer dayLeftTimes;

    @Schema(description = "当前已消耗积分")
    private Integer expenseScore;

    @Schema(description = "当前剩余积分")
    private Integer leftScore;

    @Schema(description = "状态(0-未中奖 1-已中奖）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态(0-未中奖 1-已中奖）不能为空")
    private Integer status;

    @Schema(description = "抽奖时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "抽奖时间不能为空")
    private LocalDateTime lotteryTime;

}